<?php $pageLink = $this->pageLink?$this->pageLink:'page'; ?>
<div class="pagination" style="width: 100%">
<div style="float: left; width: 28%"></div>
<div style="float: right; width: 70%;">
    <?php if (isset($this->previous)): ?>
      <a href="<?= $this->url(array($pageLink => $this->first)); ?>">&lt;&lt;</a> |
    <?php else: ?>
    <span class="disabled">&lt;&lt;</span> |
    <?php endif; ?>
    <?php if (isset($this->previous)): ?>
      <a href="<?= $this->url(array($pageLink => $this->previous)); ?>">&lt;</a> |
    <?php else: ?>
    <span class="disabled">&lt;</span> |
    <?php endif; ?>
    <?php foreach ($this->pagesInRange as $page): ?>
    <?php if ($page != $this->current): ?>
        <a href="<?= $this->url(array($pageLink => $page)); ?>"><?= $page; ?></a>
    <?php else: ?>
    <?= $page; ?>
    <?php endif; ?>
    <?php endforeach; ?>
    <?php if (isset($this->next)): ?>
      | <a href="<?= $this->url(array($pageLink => $this->next)); ?>">&gt;</a> |
    <?php else: ?>
    | <span class="disabled">&gt;</span> |
    <?php endif; ?>
    <?php if (isset($this->next)): ?>
      <a href="<?= $this->url(array($pageLink => $this->last)); ?>">&gt;&gt;</a>
    <?php else: ?>
    <span class="disabled">&gt;&gt;</span>
    <?php endif; ?>
    </div>
</div>